import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
@Injectable({
  providedIn: 'root'
})
export class ConfigGoodsStoreService {
  serviceUrls = {
    queryGoodsStoreUrL: '/commonGoods/list', // 查询商品公共库List
    eidtGoodsStoreUrL: '/commonGoods/saveOrUpdate' // 商品公共库 新增 | 编辑
  };

  constructor(public httpClient: HttpClient) { }

  // 查询商品公共库List
  queryGoodsStoreData(params: any) {
    return this.httpClient.post(this.serviceUrls.queryGoodsStoreUrL, params).toPromise();
  }

  // 商品公共库 新增 | 编辑
  eidtGoodsStoreData(params: any) {
    return this.httpClient.post(this.serviceUrls.eidtGoodsStoreUrL, params).toPromise();
  }
}
